package register;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Data
@Component
public class User1 {
    @Value("123456789")
    private String number;
    @Value("123456")
    private String password;
    @Value("学生")
    private String identity;



    public String register() {
        return "用户注册成功" +"\n"+
                "number='" + number + '\'' +
                ", password='" + password + '\'' +
                ", identity='" + identity + '\'' +
                '}';
    }
}
